home *** CD-ROM | disk | FTP | other *** search
- /**************************************************************************/
- /* Indent.ucx */
- /* */
- /* Copyright ©1998 by Dick Whiting */
- /* */
- /*------------------------------------------------------------------------*/
- /* Used with UrbCedWWW for indenting a block of text. */
- /* See the UrbCedWWW Readme for a more complete description. */
- /**************************************************************************/
- /*
- $VER: 1.0 Copyright ©1998 by Dick Whiting
- */
-
- parse arg val
- val=strip(val)
-
- if val='' then val=3
- if ~datatype(val,'N') then val=3
-
- Address CYGNUSED
- options results
-
- 'STATUS INSERTMODE'
- ison=result
- if ~ison then 'INSERT MODE'
-
- 'CEDTOFRONT'
-
- 'STATUS BLOCKY'
- mark1=result+1
-
- if mark1=0 then do
- 'OKAY1' "No block marked for indenting"
- end
- else do
- mark1=mark1
- 'STATUS CURSORLINE'
- mark2=result+1
- start=min(mark1,mark2)
- end=max(mark1,mark2)
- do i=start to end
- 'LL' i
- 'TEXT' copies(' ',val)
- end
- 'LL' mark2
- end
-
- exit
-
-